<template>
  <div class='homepage'>
    <Swiper></Swiper>
    <SecondMenu :className="{'pr':true,'detail':true}"></SecondMenu>
    <hr class="hr">
    <Feature></Feature>
  </div>
</template>
<script>
import Swiper from './swiper.vue'
import SecondMenu from './secondmenu'
import Feature from './feature'
import {getCode,wxUserInfo} from "../../assets/js/getToken.js"
export default {
  components: {Swiper,SecondMenu,Feature},
  name: "",
  data() {
    return {};
  },
  methods: {
    
  },
  created() {
    getCode()
  },
  mounted(){
    if(window.location.href.indexOf("homepage?id=7&code=")>-1){
      this.$router.replace("/homepage")
    }
  }
};
</script>
<style lang="scss" scoped>
.homepage {
  overflow-y: auto;
  background-color: #fff;
  
  .detail{
    top: -20px;
  }

  .hr{
    margin: 0;
    margin-bottom: 18px;
    height: 5px;
    background-color: #F2F2F2;
    border: none;
  }
}
</style>